#include "Tree_Node.h"

Tree_Node::Tree_Node() {
    left = NULL;
    right = NULL;
    parent = NULL;
    max_leaf_distance = 0;
}

Tree_Node::Tree_Node(Tree_Node *left, Tree_Node *right, Tree_Node *parent) {
    this->left    = left;
    this->right   = right;
    this->parent  = parent;
    max_leaf_distance = 0;
}

Tree_Node::bool is_leaf() {
    return left == NULL && right == NULL;
}
